package com.topisv.tms.service.buyinfo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.buyinfo.BuyInfo;
import com.topisv.tms.repository.buyinfo.BuyInfoDao;

//Spring Bean的标识.
@Component
// 默认将类中的所有public函数纳入事务管理.
@Transactional(readOnly = true)
public class BuyInfoService {

	@Autowired
	private BuyInfoDao buyInfoDao;

	public BuyInfo findBySku(String sku) {
		return buyInfoDao.findBySku(sku);
	}
	
	
	
}